fix: crash on Mii Editor: Font Size 0#290
Conversation
Release 2.4.8
Release 2.4.9
For some reasons when I pick the precompiled Linux version everything works as expected. But building from source result in an Avalonia crash: > System.ArgumentException: 0 is not a valid value for 'FontSize'. > at Avalonia.PropertyStore.ValueStore.SetValue[T](StyledProperty`1 property, T value, BindingPriority priority) Don’t really know why. Could have built this application with a different Avalonia version? I don’t really use C# usually.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRemoves the ChangesPopupListButton Arrow Icon Visibility Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
To be clear: CodeRabbit is not 100% accurate. Also for more context: the original issue I had is that the WheelWizard packaged by NixOS has this crashing issue. I tried a more regular distribution, and Arch linux package is good. |
For some reasons when I pick the precompiled Linux version everything works as expected. But building from source result the following Avalonia crash:
Don’t really know why. Could have built this application with a different Avalonia version? I don’t really use C# usually so I can’t give specifics.
Purpose of this PR:
Fix a crash by removing a FontSize attribute from something that does not have a FontSize
How to Test:
What Has Been Changed:
WheelWizard/Views/Components/PopupListButton.axaml: drop
FontSize="0".Behavior unchanged as the related Views/Components/IconLabel.axaml only use FontSize attribute with a Text attribute alongside it to feed a TextBlock.
Related Issue Link:
Checklist before merging
Summary by CodeRabbit